const { ADD, MINUS } = require("./constant");
// 优化一下
const addAction = (num) => {
  return {
    type: ADD,
    payload: num,
  };
};
const minusAction = (num) => {
  return {
    type: MINUS,
    payload: num,
  };
};

module.exports = {
  addAction,
  minusAction,
};
